#ifndef __ATIM_H__
#define __ATIM_H__

#include "main.h"

extern TIM_HandleTypeDef htim1;
extern TIM_HandleTypeDef htim2;
extern TIM_HandleTypeDef htim3;

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
float get_distance();
void Ping_LED_exec(uint8_t num,uint8_t state);


void read_from_flash();
void write_into_flash();

#endif
